package Myutils;

import java.sql.SQLOutput;
import java.util.Date;
import java.util.Scanner;

public class QRCodeUtil {
    public static void main(String[] args) {
        String str = "https://www.baidu.com";
        System.out.println(str.substring(0,3));
        String str1 ="HTTPS://WWW.BAIDU.COM";
        System.out.println(str.equals(str1));
        System.out.println(str.equalsIgnoreCase(str1)); //忽略大小写比较
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你的年龄:");
        int age =sc.nextInt();
        sc.nextLine();
        System.out.println("你的年龄是:"+age);
        System.out.println(new Date().toString());
    }

}
